package com.edais.dao;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.edais.domain.ActivitySendMessage;
import com.edais.persistence.ActivitySendMessageMapper;

@Repository

public class ActivitySendMessageDao {
	@Autowired
	private ActivitySendMessageMapper activitySendMessageMapper;
	/**
	 * 根据手机号查询发送验证码信息
	 * @param map
	 * @return
	 */
	public ActivitySendMessage queryActivitySendMessageByMobile(Map<String,Object> map){
		return activitySendMessageMapper.queryActivitySendMessageByMobile(map);
	}
	
	public Integer addActivitySendMessage(ActivitySendMessage activitySendMessage){
		return activitySendMessageMapper.addActivitySendMessage(activitySendMessage);
	}
	
	public void updateActivitySendMessage(ActivitySendMessage activitySendMessage){
		activitySendMessageMapper.updateActivitySendMessage(activitySendMessage);
	}
}
